//
//  SKUDefultQuestionNoMoreQuoteCell.m
//  ZITHER
//
//  Created by weixin on 2018/11/24.
//  Copyright © 2018 weixn. All rights reserved.
//

#import "SKUDefultQuestionNoMoreQuoteCell.h"

@implementation SKUDefultQuestionNoMoreQuoteCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.viewBorder.backgroundColor = [UIColor RGBColorWithR:245 g:245 b:245];
    [self setBorderWithHiddem:YES Color:[UIColor colorWithRed:204/255.f green:204/255.f blue:204/255.f alpha:0.5] width:0.5 Radius:10];
    
    [self setUI];
    [self setMasonry];
    
}
-(void)setUI{
    [self addSubview:self.iamge];
    [self addSubview:self.title];
}
-(void)setMasonry{
    [self.iamge mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top).offset(15);

        make.centerX.equalTo(self.mas_centerX).offset(0);
//        make.centerY.equalTo(self.mas_centerY).offset(0);
        make.height.width.mas_equalTo(80);
    }];
    [self.title mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.mas_centerX).offset(0);
        make.top.equalTo(self.iamge.mas_bottom).offset(10);
        make.bottom.equalTo(self).offset(-40);
    }];
}

-(BaseImageV *)iamge{
    if (!_iamge) {
        _iamge = [[BaseImageV alloc]initializeFrame:CGRectMake(0, 0, 0, 0) contentMode:2];
        _iamge.image = [UIImage imageNamed:@"空状态站位图"];
        _iamge.backgroundColor = [UIColor clearColor];

    }
    return _iamge;
}

-(BaseLab *)title{
    if (!_title) {
        _title = [[BaseLab alloc]initializeFrame:CGRectMake(0, 0, 0, 0) text:@"暂无待接受报价" font:12 textColor:[UIColor blackColor] isBold:NO numberOfLines:1];
        _title.font = [UIFont fontWithName:@"PingFangSC-Medium" size:17];
        _title.textColor = [UIColor colorWithHex:@"999999"];
        _title.backgroundColor = [UIColor clearColor];
    }
    return _title;
}
@end
